<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>回访记录{$ty}</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('indexlinks/daoru',array('ty'=>$ty))}" style='line-height: 46px;'>
			手机号码： 
			<input type="text" name="mobile" style="width: 150px;" value="{:I('request.mobile')}" placeholder="请输入手机号码">
			姓名： 
			<input type="text" name="name" style="width: 150px;" value="{:I('request.name')}" placeholder="姓名">
			审核备注： 
			<input type="text" name="message" style="width: 150px;" value="{:I('request.message')}" placeholder="审核备注">
			<br />
			上传时间：
			<input class="js-date" type="text" name="starts" style="width: 200px;" value="{:I('request.starts')}" placeholder="起始时间">
			<input class="js-date" type="text" name="ends" style="width: 200px;" value="{:I('request.ends')}" placeholder="结束时间">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="">清空</a>
			<a class="btn btn-primary" id='export_btn' href="{:U('indexlinks/daochu',I('request.'))}" >导出</a>
		</form>
		<if condition="(get_current_admin_id() eq 1)">
		<form class="well form-search" method="post" action="{:U('indexlinks/daoru',array('ty'=>$ty))}" enctype="multipart/form-data">
			<input type="file" name="file" style="width: 200px;"  placeholder="选择导入文件">
			<input type="submit" class="btn btn-primary" value="上传" />
		</form>
		</if>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">上传时间</th>
						<th>姓名</th>
						<th>性别</th>
						
						<th>身份证号码</th>
						<if condition="($ty gt 10)">
						<th>申请时间</th>
						</if>
						<th>备注</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
					<tr>
						<td align="center">{$vo.uptime}</td>
						<td>{$vo.name}</td>
						<td>{$vo.sex}</td>
						
						<td>{$vo.identity}</td>
						<if condition="($ty gt 10)">
						<th>{$vo.application_time}</th>
						</if>
						<td>{$vo.message}</td>
						<td><a href="{:U('indexlinks/daoru_info',array('mobile'=>$vo['mobile'],'ty'=>$ty))}">审核</a></td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>